﻿using GraphProcessor;
using IQIGame.Onigao.Logic;
using UnityEngine;

namespace IQIGame.Onigao.GamePlay.Editors
{
    [System.Serializable, NodeMenuItem(SkillEditorConst.Trigger + "/" + SkillEditorConst.UnitDie, typeof(SkillEditorGraph))]
    public class SkillTriggerNode_UnitDie : SkillTriggerNode
    {
        protected override ESkillTriggerType type => ESkillTriggerType.UnitDie;

        [InspectorName("死亡单位类型")] public ETargetRelation relation;

        protected override SkillCustomConfig CreateConfig()
        {
            return new SkillTrigger_UnitDie_ConfigData()
            {
                relation = (int)this.relation
            };
        }
    }
}